package P4.T02;

public class NeqIntegerException extends Throwable {
    public int getData() {
        return data;
    }

    private int data;
    public NeqIntegerException(int n) {
        this.data=n;
    }

    @Override
    public String getMessage() {
        return "不能求负数的阶乘";
    }
}
